If geoclue can't provide location at all (no GPS or network), don't
bother to show controls that don't serve any purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=723684
if (!this._availableAccuracyLevel) {
this._availableAccuracyLevel = this._proxy.AvailableAccuracyLevel;
this._maxAccuracyLevel = this._availableAccuracyLevel;
+ this._updateMenuVisibility();
}
this._syncIndicator();
var variant = new GLib.Variant('u', this._maxAccuracyLevel);
this._agent.emit_property_changed ('MaxAccuracyLevel', variant);
this._userSetAccuracy = false;
+ },
+
+ _updateMenuVisibility: function() {
+ this.menu.actor.visible = (this._availableAccuracyLevel != 0);
}
});